﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master"Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SelectTinTuc
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
	<h2>Chi tiết tin tức</h2>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
	<script src="../../Scripts/fckeditor/fckeditor.js" type="text/javascript"></script>
	<script type="text/javascript">
		window.onload = function () {
			var objFckEditor = new FCKeditor('TinTuc_NoiDung');
			objFckEditor.BasePath = '<%= ResolveUrl("~/Scripts/fckeditor/")%>';
			objFckEditor.Height = 480;
			objFckEditor.Width = 600;
			objFckEditor.ToolbarSet = 'TemplateWeb.MyToolbar';
			objFckEditor.ReplaceTextarea();
		}
	</script>
	<script type="text/javascript">
		<% if (Model.TinTucModel.InfoText != null && Model.TinTucModel.InfoText != ""){ %>
			alert('<%= Model.TinTucModel.InfoText %>');
		<% } %>
	</script>
	<% using (Html.BeginForm("UpdateTinTuc", "Admin", FormMethod.Post, new { enctype = "multipart/form-data", onsubmit = "return ValidateTinTuc();" }))
	{ %>
		<input type="hidden" name="TinTuc_ID" value="<%= Model.TinTucModel.GetModel.LstObjModel[0].ID %>" />
		<input type="hidden" name="TinTuc_IDLoaiTinTuc" value="<%= Model.TinTucModel.GetModel.LstObjModel[0].IDLoaiTinTuc %>" />
		<div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="AdminPageText">
				<tbody>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">TieuDe: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("TinTuc_TieuDe", Model.TinTucModel.GetModel.LstObjModel[0].TieuDe, new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">NoiDung: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextArea("TinTuc_NoiDung", Model.TinTucModel.GetModel.LstObjModel[0].NoiDung)%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">NoiDungRutGon: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<textarea name="TinTuc_NoiDungRutGon" style="width: 590px; height: 80px;"><%= Model.TinTucModel.GetModel.LstObjModel[0].NoiDungRutGon%></textarea>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">HinhMinhHoa: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<input type="file" name="TinTuc_HinhMinhHoa" />
								<br />
								<br />
								<img src="../../Content/Images/Items/<%= Model.TinTucModel.GetModel.LstObjModel[0].HinhMinhHoa %>" width="120px" height="120px" />
							</div>
						</td>
					</tr>
					<tr>
						<td height="20" style="width: 130px">
						</td>
						<td height="20">
							<div align="left">
								<br/>
								<input type="submit" value="Update" />
								<p>
								</p>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	<% } %>
</asp:Content>
